package dfbz.homework1;

import java.util.Scanner;

public class Test10 {
    public static void main(String[] args) {
        int i=1;
        while (i<6){
            System.out.println("第"+i+"次机会");
            System.out.println("请输入一个数字猜游戏");
            Scanner in=new Scanner(System.in);
            int inputNum=in.nextInt();
            Game g=new Game(inputNum);
            g.guess();
            i++;
            if(i==6){
                System.out.println("你没有机会了");
                break;
            }
        }
    }
}
